package com.rt.cms.dao;


import com.rt.cms.common.base.Page;
import com.rt.cms.common.base.PageResultSet;
import com.rt.cms.data.dto.company.ArchivesDto;
import com.rt.cms.data.entity.CompanyInfoBean;
import com.rt.cms.data.entity.TbCompanyInfo;
import com.rt.cms.data.entity.TbCompayUploadInfo;
import com.rt.cms.data.entity.system.BizException;
import com.rt.cms.data.requestParam.CompanyParam;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ArchivesMapper {


    int create(TbCompanyInfo tbCompayInfo) throws BizException;

    int update(TbCompanyInfo tbCompanyInfo);

    PageResultSet<ArchivesDto> findByPage(Page page);

    public void delete(Integer id);

    TbCompanyInfo findById(@Param("id") Integer id);

    List<TbCompanyInfo> selectByParam(@Param("params") CompanyParam companyParam);

    List<TbCompanyInfo> selectByUseParam(@Param("params") CompanyParam companyParam);

    Long selectCount(@Param("params") CompanyParam companyParam);

    Long selectUseCount(@Param("params") CompanyParam companyParam);

    List<TbCompanyInfo> selectByDormantParam(@Param("params") CompanyParam companyParam);

    Long selectDormantCount(@Param("params") CompanyParam companyParam);

    List<TbCompanyInfo> findGuaranteeDetailById(@Param("id") Integer id);

    TbCompanyInfo findCompanyDetailById(@Param("id") Integer id);

    //List<TbCompanyInfo> findByOperateID(@Param("params") CompanyParam companyParam);


}
